<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:fmt="http://java.sun.com/jstl/fmt"
                xmlns:spring="http://www.springframework.org/tags">

    <body>
      <h:form id="student">
        <ui:fragment id="studentFragment">
            <h:outputText id="id" value="Student" />
            <h:outputText id="uid" value="#{userService.currentUserDetails.username}" />
            <h:outputLink id="logout" value="${facesContext.externalContext.requestContextPath}/logout.action">
                <h:outputText value="Deconnexion"/>
            </h:outputLink>
        </ui:fragment>
      </h:form>
    </body>

</ui:composition>

